<?php
/**
 * This file belongs to huakaili project
 *
 * @author jszhang
 */
?>
  <div class="right_bar">
  	<?php
	if( $errmsg->size('change_avatar') > 0 ) $errmsg->output('change_avatar');
	?>
  <div class="orange_box">
     <div class="orange_middle">
         <div class="orange_title">
          <h1>更换头像</h1>
          </div>                       
   	 </div>
                    
	<div class="basicInfo_box">
	<div class="basicInfo_item">					
		<form method="post"  enctype="multipart/form-data" action="<?php echo edp_href_link( PAGENAME_USER_SETTING, 'subpage=change_avatar')?>">
			<input type="hidden" name="action" value="change_avatar"/>
			<input type="hidden" name="id" value="<?php echoPageVar($pageVars, "id")?>"/>
			我的当前头像：<br />
			<img src="<?php echo $pageVars['avatarPath']?>" alt="<?php echoPageVar($pageVars, "nick");?>" />
			<br /><br />
			<input type="file" name="avatar" size="40"/>
			<br />
			<p class="tip">(选择您要上传的照片，每张照片不能超过2MB)</p>
			<input type="submit" value="上传" />
		</form>
	</div>
     </div>                         
                  
	</div>
	 
  </div>
